namespace MvvmFx.Common.ViewModels.Behaviors.LoadingSaving
{
    public interface IViewModelLoader<T> : IViewModelLoader where T : ILoadSaveable
    {
        /// <summary>
        /// Loads an existing ViewModel object with data from the model.
        /// </summary>
        /// <param name="viewModel"></param>
        void Load(T viewModel);
    }

    public interface IViewModelLoader
    {
        /// <summary>
        /// Loads an existing ViewModel object with data from the model.
        /// </summary>
        /// <param name="viewModel"></param>
        void Load(ILoadSaveable viewModel);
    }
}